<?php



class DocumentMapBuilder implements MapBuilder {

	
	const CLASS_NAME = 'lib.model.map.DocumentMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap(DocumentPeer::DATABASE_NAME);

		$tMap = $this->dbMap->addTable(DocumentPeer::TABLE_NAME);
		$tMap->setPhpName('Document');
		$tMap->setClassname('Document');

		$tMap->setUseIdGenerator(false);

		$tMap->addPrimaryKey('DOCUMENT_IDEN', 'DocumentIden', 'VARCHAR', true, 20);

		$tMap->addColumn('DOCUMENT_DATE', 'DocumentDate', 'DATE', true, null);

		$tMap->addColumn('DOCUMENT_TYPE', 'DocumentType', 'VARCHAR', true, 20);

		$tMap->addColumn('VOID', 'Void', 'CHAR', true, 1);

		$tMap->addColumn('VOID_DATE', 'VoidDate', 'TIMESTAMP', false, null);

	} 
} 